﻿#include <arch/arm64/Arm64.h>
#include <Common.h>
/// <summary>
/// decoder测试
/// </summary>
#ifdef _TEST__

void main() {
	Arm64OpDecorder *op = new Arm64OpDecorder();

	LogD("Test CMD ANDS");
	op->decoder(0xf2400c00);//f
	op->decoder(0xf2402c00);//fff
	op->decoder(0xf2407c00);//ffffffff
	op->decoder(0xf2401000);//1f
	op->decoder(0xf2402000);//1ff

	_pc = 0;
	code = 0;
	code1 = 0;
	code2 = 
	while (true)
	{
	1.	code = get(pc); pc += 4;
	2.  code1 = get(pc); decode(code); pc += 4;
	3.	code2 = get(pc); decode(code1); execute(code); pc += 4;

	}

}

#endif // _TEST__